package cn.redragon.soa.common.constant;

public interface RedisCacheKey {

    /**
     * {LMP:stock:%brand:%type:sku:}%sku
     */
    String SKU_STOCK = "{redragon:stock:%s:%s:sku:}%s";

    /**
     * LMP:total_stock:%brand:%type
     */
    String SKU_TOTAL_STOCK = "LMP:total_stock:%s:%s";

    @Deprecated
    String SPU_STOCK = "{LMP:stock:%s:spu:}%s";

    String SKU_RESERVED = ":reserved";

    String MA_CUSTOMER_PROFILE = "LMP:ma_customer:%s:%s";
    /**
     * order:%type:%orderNumber:reserved
     */
    String HASH_ORDER_RESERVED = "order:%s:%s:reserved";
    /**
     * order:%type:%orderNumber:stock_returned
     */
    String HASH_ORDER_STOCK_RETURNED = "order:%s:%s:stock_returned";
    /**
     * LMP:reservation:%brand:%type:%orderNumber:locked
     */
    String RESERVATION_LOCK = "LMP:reservation:%s:%s:%s:locked";

    String RESERVATION_EXPIRED_PREFIX = "LMP:reservation:expired:";

    String RESERVATION_EXPIRED = RESERVATION_EXPIRED_PREFIX + "%s:%s:%s:%s";

}